package com.ijava.base.service;


import java.util.List;

import com.ijava.base.domain.Model;
import com.ijava.base.domain.User;

public interface ModelService {
	public void save(Model model) throws Exception;
	public String persist(Model model) throws Exception;
	public void saveAll(Model model, User user) throws Exception;

	public void update(Model model) throws Exception;
	public void merge(Model model) throws Exception;

	public void saveOrUpdate(Model model) throws Exception;

	public void remove(String id) throws Exception;

	public void removeProcess(Model model) throws Exception;

	public void mutilRemove(Model model) throws Exception;

	public Model get(String id) throws Exception;

	public List findWithPaging(Model model) throws Exception;

	public List findTree(String detailId, List list) throws Exception;

	public List findChild(Model model) throws Exception;
}
